![]() |
ScriptOrder |
||||
Header: | StringCompare.h | Carbon status: | Supported | |
Determines the order in which strings in two different scripts should be sorted.
SInt16 ScriptOrder ( ScriptCode script1, ScriptCode script2 );
The script code of the first script.
The script code of the second script.
A value that indicates the sorting order: –1 if strings in the first script should be sorted before strings in the second script are sorted, 1 if strings in the first script should be sorted after strings in the second script are sorted, or 0 if the sorting order does not matter (that is, if the scripts are the same).0
Text of the system script is always first in a sorted list, regardless of the result returned by this function. When determining the order in which text from two different script systems should be sorted, the system script always sorts first, and scripts that are not enabled and installed always sort last. Invalid script or language codes always sort after valid ones.
ScriptOrder may move memory; your application should not call this function at interrupt time.
Supported in Carbon. Available in CarbonLib 1.0 and later when InterfaceLib 7.1 or later is installed. Exported by CarbonLib 1.0 and later and by InterfaceLib 7.1 and later.
© 2000 Apple Computer, Inc. — (Last Updated 4/14/2000)